package cn.bugDance.domain.rebate.model.aggregate;

import cn.bugDance.domain.rebate.model.entity.TaskEntity;
import cn.bugDance.domain.rebate.model.entity.UserBehaviorRebateOrderEntity;
import cn.bugDance.domain.rebate.model.entity.UserCalendarSignRecordEntity;
import cn.bugDance.domain.rebate.model.entity.UserCheckInOrderEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserBehaviorRebateOrderAggregate {
    private String userId;
    private Long activityId;
    private String month;
    private Map<UserBehaviorRebateOrderEntity, TaskEntity> userBehaviorRebateOrderPair = new ConcurrentHashMap<>();
    private UserCalendarSignRecordEntity userCalendarSignRecordEntity;


    public void put(UserBehaviorRebateOrderEntity userBehaviorRebateOrderEntity, TaskEntity taskEntity){
        userBehaviorRebateOrderPair.put(userBehaviorRebateOrderEntity, taskEntity);
    }
}
